package anc.server.tankshooter.network;

/**
 * Chứa tất cả các ID thông điệp trao đổi giữa client và server<br>
 * Có 2 loại: <br>
 * <li> CLIENT_XXX : Thông điệp từ client gửi cho server
 * <li> SERVER_XXX : Thông điệp từ server trả về cho client
 * @author tauitdnmd
 *
 */
public class CommandList {
	
	/**
	 * Thông điệp từ client gửi lên cho server
	 */
	public static final int CLIENT_LOGIN=0;
	public static final int SERVER_LOGIN_SUCCESSED=1;
	public static final int SERVER_LOGIN_FAILED=2;
	public static final int SERVER_LOGIN_FAILED_WRONG_UP = 21;
	public static final int SERVER_LOGIN_FAILED_SIGNED = 22;
	
	public static final int CLIENT_DISCONNECTED=3;
	public static final int SERVER_DISCONNECTED=4;
	
	public static final int CLIENT_ALL_ROOM=5;
	public static final int SERVER_ALL_ROOM=6;
	
	public static final int CLIENT_JOIN=7;
	public static final int SERVER_JOIN_SUCCESSED=8;
	public static final int SERVER_JOIN_FAILED=9;
	
	public static final int CLIENT_LEAVE_ROOM=10;
	public static final int SERVER_LEAVE_ROOM=11;
	
	public static final int CLIENT_START=12;
	public static final int CLIENT_STARTED=121;
	public static final int SERVER_START=13;
	
	
	/**
	 *  gửi: [huong_di]
	 */
	public static final int CLIENT_RUN = 14;
	/**
	 * Trả về:  [account_id][hướng_di] 
	 */
	public static final int SERVER_RUN = 15;
	
	public static final int RUN_AHEAD=-1;
	public static final int RUN_UP = 0;
	public static final int RUN_RIGHT= 1;
	public static final int RUN_DOWN= 2;
	public static final int RUN_LEFT= 3;
	
	public static final int CLIENT_FIRE = 16;
	public static final int SERVER_FIRE = 17;
	
	/**
	 * Không gửi lên j cho server hết
	 */
	public static final int CLIENT_PAUSE=18;
	/**
	 * Trả về account_id của người pause
	 */
	public static final int SERVER_PAUSE=19;
	
	public static final int CLIENT_RESUME=20;
	/**
	 * Trả về account_id của người pause
	 */
	public static final int SERVER_RESUME=21;
	
	public static final int CLIENT_PLAYER_GIVEUP=22;
	public static final int SERVER_PLAYER_GIVEUP=23;
	public static final int CLIENT_PLAY_DONE = 24;
	public static final int CLIENT_SIGNUP = 25;
	public static final int SERVER_SIGNUP_SUCCESS = 251;
	public static final int SERVER_SIGNUP_FAILED = 252;
	public static final int CLIENT_LOGOUT = 26;
	
}
